
<%@ page contentType="text/html; charset=UTF-8" %>  
<%@ taglib prefix="s" uri="/struts-tags"%>
       
<html>
    <head>
     <script type="text/javascript" src="JavaScript/scripts.js"></script>
     <link rel="stylesheet" type="text/css"  href="css/main.css">
     <title>Consulta Convênio por nome</title>
    </head>
 <body>
   
    <div id="botao1">
   <div id="style1">
        <div id="barratopo">   
         <center> <font size="4">Manuten&ccedil;&atilde;o de Convenio</font></center>
        </div>
          <TABLE BORDER="0">
            <tr><td><a href="formConvenio.action">Cadastrar </a></td>
                <td>|</td>
            	<td><a href="buscaConvConsultaNome.action">Consultar por Nome </a></td>
                <td>|</td>
                <td><a href="buscaConvConsultaCodigo.action">Consultar por Código </a></td>
                <td>|</td>
                <td><a href="listaTodosConvenios.action">Listar</a></td>
            </tr>
          </TABLE>
       </div>
       <br>
       <center>
        <s:form id="frmConsulta">
        <h1>Convênio</h1>
       <table align="center" class="borderTabelaconsulta">
		<tr class="nowrapConsulta">
		
			<td class="tdLabel"><s:text name="Nome" /></td>
			<td class="tdTextf"><s:textfield cssClass="nowrap" name="nomeFantasia" size="40" maxlength="40"  />
			<s:submit action="ConsultaConvenioNome" key="Consultar"   />
			<s:submit key="Cancelar" />
			<input type="button" value=" Voltar " onclick="history.go(-1)"  /> 
		
			</td>
      	
       </tr>
       </table>
      
       </s:form>
       <table cellpadding="0" cellspacing="1" align=center class="borderAll">
	<tr>
		
		<th class="nowrapLateral"><s:text name="Código" /></th>
		<th class="nowrapLateral"><s:text name="Nome" /></th>
		<th class="nowrapLateral"><s:text name="Telefone" /></th>
		
	</tr>
	<s:iterator value="listaConvenios" status="status">
		<tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
		
			<td class="nowrap">&nbsp;&nbsp;&nbsp;<s:property value="codigo"/></td>
			<td class="nowrap">&nbsp;&nbsp;&nbsp;<s:url id="detalhe" action="detalharConvenio">
				<s:param name="convenio.id" value="id" />
				</s:url> <s:a href="%{detalhe}" title="Clique Para Ver Mais Detalhes!">
				<s:property value="nomeFantasia" /></s:a></td>
			<td class="nowrap"><s:property value="telefone" /></td>
	
		</tr>
		
	</s:iterator>

</table>  
 <s:form id="frmConsulta">
 <br> <s:fielderror /> <s:actionerror /> <s:actionmessage />
 <table align="center" class="borderTabelaconsulta">

		<tr class="nowrapConsulta">
			<td class="tdLabel">&nbsp;&nbsp;&nbsp;</td>
			<td class="tdTextf">&nbsp;&nbsp;&nbsp;
			</td>
    
       </tr>
       </table> 
     </s:form>
      </center>    
       <br><br>
     </div>
 </body>
</html>
